package com.shelpe.services.algorithm.choose;

import org.springframework.stereotype.Service;

import com.shelpe.services.algorithm.entity.jpa.Adgroup;

@Service
public class AutoDriveChooseHandler implements ChooseHandler<Adgroup> {

	@Override
	public int count(ChooseHandler.ChooseHandleContext<Adgroup> context) {
		return 100;
	}


	@Override
	public boolean support(ChooseHandler.ChooseHandleContext<Adgroup> context) {
		return context.getEntity().getDriveType() == 1;
	}
}
